package dev.tools;

import static org.junit.Assert.*;

import java.io.FileNotFoundException;
import java.io.IOException;

import org.junit.Test;

public class IndexToIntWriterTest {

    @Test
    public void testToIntArray() {
        IndexToIntWriter writer = new IndexToIntWriter("C:\\test\\av.index");
        
        int[] numbers = writer.toIntArray();
        
        assertNotNull(numbers);
    }

    @Test
    public void testToListOfIntegers() {
        fail("Not yet implemented");
    }

    @Test
    public void testWriteResultToFile() {
        IndexToIntWriter writer = new IndexToIntWriter("C:\\test\\av.index");
        
        try {
            writer.writeResultToFile("C:\\test\\testWriteInputToFile.txt");
        } catch (FileNotFoundException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

}
